package edu.hubu.talentmanagementsystem.model.ext;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import edu.hubu.talentmanagementsystem.model.Model;

import java.io.Serializable;

/**
 * <p>
 * 职位小类别
 * </p>
 *
 * @author moonlan
 * @since 2021-03-13
 */
@TableName("position_small_tag")
public class PositionSmallTag extends Model<PositionSmallTag> implements Serializable {


    /**
     * 职位小类别ID
     */
    @TableId(value = "position_small_tag_id", type = IdType.AUTO)
    private Integer positionSmallTagId;

    /**
     * 职位小类别名称
     */
    @TableField("position_small_tag_name")
    private String positionSmallTagName;

    /**
     * 职位大类别ID
     */
    @TableField("position_big_tag_id")
    private Integer positionBigTagId;

    @TableField(exist = false)
    private PositionBigTag positionBigTag;

    public PositionBigTag getPositionBigTag() {
        return positionBigTag;
    }

    public PositionSmallTag setPositionBigTag(PositionBigTag positionBigTag) {
        this.positionBigTag = positionBigTag;
        return this;
    }

    public Integer getPositionSmallTagId() {
        return positionSmallTagId;
    }

    public PositionSmallTag setPositionSmallTagId(Integer positionSmallTagId) {
        this.positionSmallTagId = positionSmallTagId;
        return this;
    }

    public String getPositionSmallTagName() {
        return positionSmallTagName;
    }

    public PositionSmallTag setPositionSmallTagName(String positionSmallTagName) {
        this.positionSmallTagName = positionSmallTagName;
        return this;
    }

    public Integer getPositionBigTagId() {
        return positionBigTagId;
    }

    public PositionSmallTag setPositionBigTagId(Integer positionBigTagId) {
        this.positionBigTagId = positionBigTagId;
        return this;
    }

    @Override
    public String toString() {
        return "PositionSmallTag{" +
                "positionSmallTagId=" + positionSmallTagId +
                ", positionSmallTagName=" + positionSmallTagName +
                ", positionBigTagId=" + positionBigTagId +
                "}";
    }
}
